Xbasic

RTFMEMO.SET_STYLE Function

Syntax

.SET_STYLE( Style_Name as C )

Arguments

Style_Name

The name of a style. Styles have the following names:

"Style 1"
"Style 2"
...
"Style 8"

Description

The .SET_STYLE() method sets the style for the next insertion into the RTF field.

Example

dim obj as P
obj = :Customer_Information:rtfmemofield.this
obj.rtf.set_style("Style 2")
obj.rtf.insert_text("This is RTF text")
? obj.rtf.get_style()
= "Style 2"

Limitations

Desktop applications only.

See Also